package com.作业.Day17;

import jdk.nashorn.internal.ir.CallNode;

import java.util.Currency;

public class Homework2 {
    public static void main(String[] args) {


        Thread thread = new Thread(() -> {
            for (int i = 1; i <= 20; i++) {
                System.out.println(i + ".你好,来自线程Thread-" + Thread.currentThread().getId());
            }
        });
        Thread thread1 = new Thread(() -> {
            for (int i = 1; i <= 20; i++) {
                System.out.println(i + ".你好,来自线程Thread-" + Thread.currentThread().getId());
            }
        });
        thread.start();
        thread1.start();
    }
}